<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:useBean id="m" class="skyinline.j2ee.basic.projectv5.model.MemberVO" />
<jsp:setProperty property="uid" 
	name="m" value="${ sessionScope.uid }" />
<jsp:useBean id="mdao" class="skyinline.j2ee.basic.projectv5.dao.MemberDAO" />
<c:set var="m" value="${mdao.readMember(m)}" />

<style type="text/css">
	#content div{ width: 355px; margin: 0 auto; }
</style>

<div id="content">
	<c:if test="${ not empty sessionScope.uid }"><%-- 로그인한 상태라면 --%>
		<h2>회원정보</h2>
		<div>
		<p>회원번호 : ${m.mno}</p>
		<p>아이디 : ${m.uid}</p>
		<p>비밀번호 : ${m.pwd}</p>
		<p>이름 : ${m.name}</p>
		<p>가입일 : ${m.rdate}</p>
		</div>
	</c:if>
	<c:if test="${ empty sessionScope.uid }"><%-- 로그인 안한 상태라면 --%>
		<script>location.href='?action=login';</script>
	</c:if>
</div><!-- // content -->
		




